namespace KPIS.GERP.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class update0128 : DbMigration
    {
        public override void Up()
        {
            AlterColumn("dbo.FimMasLookUp", "CreatedWhen", c => c.DateTime());
            AlterColumn("dbo.FimMasLookUpType", "CreatedWhen", c => c.DateTime());
            AlterColumn("dbo.IcmMasDepreciationType", "CreatedWhen", c => c.DateTime());
            AlterColumn("dbo.IcmMasLookUp", "CreatedWhen", c => c.DateTime());
            AlterColumn("dbo.IcmMasLookUpType", "CreatedWhen", c => c.DateTime());
            AlterColumn("dbo.IcmReceive", "CreatedWhen", c => c.DateTime());
            AlterColumn("dbo.IcmReceiveDtl", "CreatedWhen", c => c.DateTime());
            AlterColumn("dbo.IcmAsset", "CreatedWhen", c => c.DateTime());
            AlterColumn("dbo.IcmAssetDepreciation", "CreatedWhen", c => c.DateTime());
            AlterColumn("dbo.IcmAssetWarranty", "CreatedWhen", c => c.DateTime());
            AlterColumn("dbo.IcmOfficeSuppliesLot", "CreatedWhen", c => c.DateTime());
            AlterColumn("dbo.IcmMovementHistory", "CreatedWhen", c => c.DateTime());
            AlterColumn("dbo.SysOTP", "CreatedWhen", c => c.DateTime());
            AlterColumn("dbo.SysSearchResult", "CreatedWhen", c => c.DateTime());
            AlterColumn("dbo.hrm_mp_position_work_on_duty", "created_when", c => c.DateTime());
        }
        
        public override void Down()
        {
            AlterColumn("dbo.hrm_mp_position_work_on_duty", "created_when", c => c.DateTime(nullable: false));
            AlterColumn("dbo.SysSearchResult", "CreatedWhen", c => c.DateTime(nullable: false));
            AlterColumn("dbo.SysOTP", "CreatedWhen", c => c.DateTime(nullable: false));
            AlterColumn("dbo.IcmMovementHistory", "CreatedWhen", c => c.DateTime(nullable: false));
            AlterColumn("dbo.IcmOfficeSuppliesLot", "CreatedWhen", c => c.DateTime(nullable: false));
            AlterColumn("dbo.IcmAssetWarranty", "CreatedWhen", c => c.DateTime(nullable: false));
            AlterColumn("dbo.IcmAssetDepreciation", "CreatedWhen", c => c.DateTime(nullable: false));
            AlterColumn("dbo.IcmAsset", "CreatedWhen", c => c.DateTime(nullable: false));
            AlterColumn("dbo.IcmReceiveDtl", "CreatedWhen", c => c.DateTime(nullable: false));
            AlterColumn("dbo.IcmReceive", "CreatedWhen", c => c.DateTime(nullable: false));
            AlterColumn("dbo.IcmMasLookUpType", "CreatedWhen", c => c.DateTime(nullable: false));
            AlterColumn("dbo.IcmMasLookUp", "CreatedWhen", c => c.DateTime(nullable: false));
            AlterColumn("dbo.IcmMasDepreciationType", "CreatedWhen", c => c.DateTime(nullable: false));
            AlterColumn("dbo.FimMasLookUpType", "CreatedWhen", c => c.DateTime(nullable: false));
            AlterColumn("dbo.FimMasLookUp", "CreatedWhen", c => c.DateTime(nullable: false));
        }
    }
}
